<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图书管理系统 - 用户端</title>
    <style>
        /* 页面基础样式 */
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f7fc;
            color: #333;
        }

        .header {
            background-color: #4CAF50;
            color: white;
            padding: 20px 0;
            text-align: center;
        }

        .header h1 {
            margin: 0;
            font-size: 36px;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 30px auto;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        h2 {
            text-align: center;
            color: #333;
        }

        .book-card {
            display: inline-block;
            width: 22%;
            margin: 10px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s;
        }

        .book-card:hover {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transform: scale(1.05);
        }

        .book-card img {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

        .book-card h3 {
            margin-top: 15px;
            font-size: 18px;
            color: #333;
        }

        .book-card p {
            font-size: 14px;
            color: #777;
        }

        .book-card .price {
            font-size: 16px;
            color: #4CAF50;
            font-weight: bold;
            margin: 10px 0;
        }

        .button {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            font-size: 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            margin-top: 10px;
            transition: background-color 0.3s;
        }

        .button:hover {
            background-color: #45a049;
        }

        .footer {
            background-color: #f1f1f1;
            color: #888;
            padding: 15px 0;
            text-align: center;
            font-size: 14px;
        }
    </style>
</head>
<body>

<!-- 页头 -->
<div class="header">
    <h1>图书管理系统</h1>
</div>

<!-- 主体内容区域 -->
<div class="container">
    <h2>我们的图书</h2>

    <!-- 图书卡片展示 -->
    <div class="book-card">
        <img src="https://via.placeholder.com/200x300.png?text=Book+Cover" alt="Book 1">
        <h3>图书名称 1</h3>
        <p>作者: 作者 1</p>
        <p>类别: 类别 1</p>
        <p class="price">¥50.00</p>
        <a href="#" class="button">查看详情</a>
    </div>

    <div class="book-card">
        <img src="https://via.placeholder.com/200x300.png?text=Book+Cover" alt="Book 2">
        <h3>图书名称 2</h3>
        <p>作者: 作者 2</p>
        <p>类别: 类别 2</p>
        <p class="price">¥75.00</p>
        <a href="#" class="button">查看详情</a>
    </div>

    <div class="book-card">
        <img src="https://via.placeholder.com/200x300.png?text=Book+Cover" alt="Book 3">
        <h3>图书名称 3</h3>
        <p>作者: 作者 3</p>
        <p>类别: 类别 3</p>
        <p class="price">¥65.00</p>
        <a href="#" class="button">查看详情</a>
    </div>

    <div class="book-card">
        <img src="https://via.placeholder.com/200x300.png?text=Book+Cover" alt="Book 4">
        <h3>图书名称 4</h3>
        <p>作者: 作者 4</p>
        <p>类别: 类别 4</p>
        <p class="price">¥80.00</p>
        <a href="#" class="button">查看详情</a>
    </div>
</div>

<!-- 页脚 -->
<div class="footer">
    <p>&copy; 2024 图书管理系统 | 所有权利保留</p>
</div>

</body>
</html>
